<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta charset='utf-8' />
	<title>国网云盘系统</title>
</head>
<body style='padding:0px;margin:0px'>
	<div style='width:1018px;height:682px;background:url(../public/after_login.jpg) no-repeat;position:relative'>
		<div style='width:300px;height:200px;position:absolute;top:250px;left:450px'>
			<div><span style='color:#ddd;font-weight:bold'>用户名：</span><input type="text"  style='width:150px' id='user' /></div>

			<br />
			
			<div><span style='color:#ddd;font-weight:bold'>密　码：</span><input type="password" style='width:150px' id='pwd' /></div>

			<br />

			<div style='padding-left:66px'>
				<button id='login'>登陆</button>
				<button id='back'>重置</button>
			</div>

		</div>
	</div>
</body>
</html>
<script src='../public/jquery1.1.js'></script>
<script src='../public/fun.js'></script>
<script>


$(function(){
	$('#login').click(function(){
		var user = m_trim($('#user').val());
		var pwd = m_trim($('#pwd').val());
		if(!user || !pwd){
			A('用户名或密码不得为空！');return;
		}
		var data = {
				type:'login',
				account:user,
				pwd:pwd
		};
		Ajax(data,function(res){
			var tmp = _checkJsonFormat(res,1); //检测JSON格式
			if(tmp.stat == 'ok'){
				sessionStorage.adminAccount = user;
				A('登陆成功！');
				location.replace('main.html');
			}else{
				A('用户名或密码不正确！');				
			}
		},after_interface);
	});
});	
</script>

